
/* Check if it hits a wall */
function SWEP:CheckHitsWall()

	/* Variables */
	local ply			= self.Owner
	local wpn			= self.Weapon
	local start			= self.Owner:GetShootPos()
	local aim			= self.Owner:GetAimVector()
	local len			= 75
	
	/* Create a trace from the weapon */
	local traceData		= {}
	traceData.start		= start
	traceData.endpos	= start + aim * len
	traceData.filter	= { [1] = ply, [2] = wpn }
	traceData.mask		= MASK_SOLID_BRUSHONLY
	local trace			= util.TraceLine( traceData )
	
	/* Return the trace info */
	return trace
end
